package com.xyzwps.paimon.furina.modules.tag

import jakarta.validation.constraints.NotEmpty
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size


data class CreateTagPayload(
    @field:NotNull(message = "缺少标签名称")
    @field:NotEmpty(message = "缺少标签名称")
    @field:Size(max = Tag.NAME_MAX_LENGTH, message = "标签名称不可超过 ${Tag.NAME_MAX_LENGTH} 个字符")
    val name: String,

    @field:NotNull(message = "缺少参数 domain")
    val domain: Int
)